<template>
  <div id="app">
    <h2>app - app - 根组件---{{ count }}</h2>
    <hr />
    <!-- 5.路由出口 -->
    <router-view></router-view>
    <Foot></Foot>
    <!-- <Demo></Demo>
    <hr />
    <First></First> -->
  </div>
</template>

<script>
// 导入组件
import First from "@/components/First.vue";
export default {
  computed: {
    count() {
      return this.$store.state.count;
    },
  },
  components: {
    First,
  },
};
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
